<template>
  <div>
    <button @click="getData">获取轮播图数据</button>
  </div>
</template>

<script>
import { getBanner } from "../utils/api.js";
export default {
  data() {
    return {};
  },
  methods: {
    getData() {
      getBanner().then((res) => {
        console.log(res);
      });
    },
  },
  created() {},
  mounted() {},
  components: {},
  computed: {},
  watch: {},
};
</script>

<style lang="scss" scoped></style>
